package com.ostrich.demomvvm.mvvm

import androidx.databinding.ViewDataBinding
import androidx.lifecycle.ViewModelProvider

/**
 * @Author : yaotianxue
 * @Time : On 2023/10/18 16:22
 * @Description : BaseMvvmActivity
 */
abstract class BaseMvvmActivity<VM:BaseViewModel,VDB:ViewDataBinding>: BaseActivity<VDB>(){
    protected val viewModel:VM by lazy { ViewModelProvider(this)[getJVMClass()] }

    abstract fun getJVMClass():Class<VM>

}